* {
  margin: 0;
  padding: 0;
}
li {
  list-style: none;
}
body {
  background-color: #ccc;
}
.mofang {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 200px auto;
  transform-style: preserve-3d;
  transition: all 2s;
  transform: rotateX(60deg) rotateY(40deg);
}
.mofang:hover .left {
  transform: rotateX(90deg) translateZ(-150px);
  transition: all 2s;
}
.mofang:hover .right {
  transform: rotateX(90deg) translateZ(150px);
  transition: all 2s;
}
.mofang:hover .bottom {
  transform: rotateY(90deg) translateZ(150px);
  transition: all 2s;
}
.mofang:hover .top {
  transform: rotateY(90deg) translateZ(-150px);
  transition: all 2s;
}
.mofang:hover .hou {
  transform: translateZ(-150px);
  transition: all 2s;
}
.mofang:hover .qian {
  transform: translateZ(150px);
  transition: all 2s;
}
.mofang .gongtong {
  position: absolute;
  top: 0;
  width: 200px;
  height: 200px;
}
.mofang .left {
  background-color: transparent;
  transform: rotateX(90deg) translateZ(100px);
}
.mofang .left ul {
  height: 100%;
  display: flex;
  flex-wrap: wrap;
}
.mofang .left ul li {
  width: 30%;
  height: 30%;
  background-color: #fff;
  margin: 3px 3px;
  line-height: 65px;
  text-align: center;
  border-radius: 10px;
}
.mofang .right {
  background-color: transparent;
  transform: rotateX(90deg) translateZ(-100px);
  transition: all 1s;
}
.mofang .right ul {
  height: 100%;
  display: flex;
  flex-wrap: wrap;
}
.mofang .right ul li {
  width: 30%;
  height: 30%;
  background-color: green;
  margin: 3px 3px;
  line-height: 65px;
  text-align: center;
  border-radius: 10px;
}
.mofang .top {
  background-color: transparent;
  transform: rotateY(90deg) translateZ(100px);
}
.mofang .top ul {
  height: 100%;
  display: flex;
  flex-wrap: wrap;
}
.mofang .top ul li {
  width: 30%;
  height: 30%;
  background-color: red;
  margin: 3px 3px;
  line-height: 65px;
  text-align: center;
  border-radius: 10px;
}
.mofang .bottom {
  background-color: transparent;
  transform: rotateY(90deg) translateZ(-100px);
}
.mofang .bottom ul {
  height: 100%;
  display: flex;
  flex-wrap: wrap;
}
.mofang .bottom ul li {
  width: 30%;
  height: 30%;
  background-color: purple;
  margin: 3px 3px;
  line-height: 65px;
  text-align: center;
  border-radius: 10px;
}
.mofang .qian {
  background-color: transparent;
  transform: translateZ(-100px);
}
.mofang .qian ul {
  height: 100%;
  display: flex;
  flex-wrap: wrap;
}
.mofang .qian ul li {
  width: 30%;
  height: 30%;
  background-color: blue;
  margin: 3px 3px;
  line-height: 65px;
  text-align: center;
  border-radius: 10px;
}
.mofang .hou {
  background-color: transparent;
  transform: translateZ(100px);
}
.mofang .hou ul {
  height: 100%;
  display: flex;
  flex-wrap: wrap;
}
.mofang .hou ul li {
  width: 30%;
  height: 30%;
  background-color: orange;
  margin: 3px 3px;
  line-height: 65px;
  text-align: center;
  border-radius: 10px;
}
